<?php

use Illuminate\Support\Facades\Schema;
use Illuminate\Support\Facades\DB;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateLogisticsComTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('logistics_com', function (Blueprint $table) {
            $table->bigIncrements('id');
            $table->string('com')->comment('公司名称');
            $table->string('no')->comment('公司编号');
        });
        DB::statement("ALTER TABLE `logistics_com` comment '快递公司编号';");
    }

    /**
     * Reverse the migrations.
     * 备注123
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('logistics_com');
    }
}
